from alg import *
from gen import *

class Test:
    def testing():
        n = gen()
        re = Solution.solveNQueens(n)
        print("The N-Queens question for n =", n)
        print("The result is:")
        print(re[0])
        print("Time cost: {:.3f} ms".format(re[1]))


if __name__ == '__main__':
    Test.testing()